package com.ruoyi.passengers.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passengers.mapper.PassengerMembershipsMapper;
import com.ruoyi.passengers.domain.PassengerMemberships;
import com.ruoyi.passengers.service.IPassengerMembershipsService;

/**
 * 会员信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-17
 */
@Service
public class PassengerMembershipsServiceImpl implements IPassengerMembershipsService 
{
    @Autowired
    private PassengerMembershipsMapper passengerMembershipsMapper;

    /**
     * 查询会员信息
     * 
     * @param id 会员信息主键
     * @return 会员信息
     */
    @Override
    public PassengerMemberships selectPassengerMembershipsById(Long id)
    {
        return passengerMembershipsMapper.selectPassengerMembershipsById(id);
    }

    /**
     * 查询会员信息列表
     * 
     * @param passengerMemberships 会员信息
     * @return 会员信息
     */
    @Override
    public List<PassengerMemberships> selectPassengerMembershipsList(PassengerMemberships passengerMemberships)
    {
        return passengerMembershipsMapper.selectPassengerMembershipsList(passengerMemberships);
    }

    /**
     * 新增会员信息
     * 
     * @param passengerMemberships 会员信息
     * @return 结果
     */
    @Override
    public int insertPassengerMemberships(PassengerMemberships passengerMemberships)
    {
        return passengerMembershipsMapper.insertPassengerMemberships(passengerMemberships);
    }

    /**
     * 修改会员信息
     * 
     * @param passengerMemberships 会员信息
     * @return 结果
     */
    @Override
    public int updatePassengerMemberships(PassengerMemberships passengerMemberships)
    {
        return passengerMembershipsMapper.updatePassengerMemberships(passengerMemberships);
    }

    /**
     * 批量删除会员信息
     * 
     * @param ids 需要删除的会员信息主键
     * @return 结果
     */
    @Override
    public int deletePassengerMembershipsByIds(Long[] ids)
    {
        return passengerMembershipsMapper.deletePassengerMembershipsByIds(ids);
    }

    /**
     * 删除会员信息信息
     * 
     * @param id 会员信息主键
     * @return 结果
     */
    @Override
    public int deletePassengerMembershipsById(Long id)
    {
        return passengerMembershipsMapper.deletePassengerMembershipsById(id);
    }
}
